package cn.com.cifi.mars.web.action.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import cn.com.cifi.mars.bean.vo.sys.rsp.DictionaryTypeVo;
import cn.com.cifi.mars.common.base.BaseAction;
import cn.com.cifi.mars.common.bean.R;
import cn.com.cifi.mars.service.DictionaryTypeService;
@RestController
public class DictionaryTypeController extends BaseAction implements IDictionaryTypeController {

	@Autowired
	private DictionaryTypeService dictionaryTypeService;


	/**
	 * 分页查询字典类型
	 */
	@Override
	public R<DictionaryTypeVo> getDictionaryTypePage(String apiVersion, String current, String pageSize, String typeName) {
        return ok(dictionaryTypeService.queryDictionaryTypeList(typeName, current, pageSize));
	}

	/**
	 * 字典类型下拉框
	 */
	@Override
	public R<String> getDictionaryTypeList(String apiVersion) {
		return ok(dictionaryTypeService.queryDictionaryTypeSelect());
	}

}
